package com.mmp.common.util;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Retention(RUNTIME)
@Target(FIELD)
public @interface SearchRequired {

	// If it is an object then dig deep the search by this object.

	boolean isObject() default false;

	// This is fields list required for search by if it is object.

	String[] fields() default {};
}
